package com.huawei.M01.iterator.May11;

public class QueryString {
    public boolean queryString(String s, int n) {

        for (int i = 1; i <= n; i++) {
            if (!s.contains(Integer.toBinaryString(i))) {
                return false;
            }
        }
        return true;
    }

    public static void main(String[] args) {
        System.out.println(new QueryString().queryString("0110", 4));
    }
}
